<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript" src="/ceshi/Public/Admin/Js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/ceshi/Public/Admin/Js/index.js"></script>
<script type="text/javascript" src="/ceshi/Public/Admin/Js/jq.js"></script>
<link rel="stylesheet" href="/ceshi/Public/Admin/Css/public.css" />
<link rel="stylesheet" href="/ceshi/Public/Admin/Css/index.css" />
<link rel="stylesheet" href="/ceshi/Public/Admin/Css/login.css" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">

</head>
<table class="public_border">
	<tr>
		<td>ID</td>
		<td>产品标题</td>
		<td>点击数</td>
		<td>所属分类</td>
		<td>发布日期</td>
		<td>产品图片</td>
		<td>状态</td>
		<td>操作</td>
	</tr>
	<?php if(is_array($arr)): foreach($arr as $key=>$v): ?><tr>
		<td><<?php echo ($v["id"]); ?>></td>
		<td><<?php echo ($v["productname"]); ?>></td>
		<td><<?php echo ($v["productClick"]); ?>></td>
		<td><<?php echo ($v["typename"]); ?>></td>
		<td><<?php echo ($v["productdate"]); ?>></td>
		<td><img src="/ceshi/Public/Uploads/<<?php echo ($v["productimg"]); ?>>" width="100" /></td>
		<?php if($v["auditing"] == 0): ?><td>审核</td>
		<?php elseif($v["auditing"] == 1): ?>
		<td>通过</td>
		<?php else: endif; ?>
		<td>
			<?php if($v["alevel"] == 0): ?><a href="/ceshi/index.php/Admin/Products/del/id/<<?php echo ($v["id"]); ?>>">[删除]</a>
			<?php elseif($v["alevel"] == 1): ?>
			<a style="color:#ccc">[删除]</a>
			<?php else: endif; ?>
			<a href="/ceshi/index.php/Admin/Products/upd/id/<<?php echo ($v["id"]); ?>>">[修改]</a>
			<?php if($v["auditing"] == 0): ?><a href="/ceshi/index.php/Admin/Products/unlock/id/<<?php echo ($v["id"]); ?>>">[解锁]</a>
			<?php elseif($v["auditing"] == 1): ?>
			<a href="/ceshi/index.php/Admin/Products/lock/id/<<?php echo ($v["id"]); ?>>">[锁定]</a>
			<?php else: endif; ?>
		</td>
	</tr><?php endforeach; endif; ?>
	<tr>
		<td></td>
		<td></td>
		<td></td>
		<td></td>
		<td></td>
		<td colspan='2' text="right"><<?php echo ($show); ?>><<?php echo ($list); ?>></td>		
	</tr>
</table>